GGJ2022/Assets/Scripts/PlatformManager.cs

23 lines
415 B
C#
Raw Normal View History

2022-01-29 00:19:21 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlatformManager : MonoBehaviour
{
public enum PlatformType {Pull, Push, Rotate};
public PlatformType type = PlatformType.Pull;
void Start()
{
}
void FixedUpdate()
{
if (type == PlatformType.Rotate)
{
transform.Rotate(transform.forward);
}
}
}