mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2025-02-21 12:53:10 +01:00
18 lines
379 B
C#
18 lines
379 B
C#
|
using UnityEngine;
|
|||
|
using System.Collections;
|
|||
|
|
|||
|
public class PlaygroundSineRotation : MonoBehaviour {
|
|||
|
|
|||
|
Transform thisTransform;
|
|||
|
|
|||
|
// Use this for initialization
|
|||
|
void Start () {
|
|||
|
thisTransform = transform;
|
|||
|
}
|
|||
|
|
|||
|
// Update is called once per frame
|
|||
|
void Update () {
|
|||
|
thisTransform.Rotate(new Vector3(Mathf.Sin (Time.time), Mathf.Cos (Time.time), Mathf.Sin (Time.time)));
|
|||
|
}
|
|||
|
}
|