Esempio n. 1
0
    void Start()
    {
        _particles            = GetComponent <ParticleSystem>();
        _autoRotate           = GetComponent <UnityStandardAssets.Utility.AutoMoveAndRotate>();
        _timeTravelController = GameObject.FindGameObjectWithTag(SuriAlFuturo.Tag.GameController).GetComponent <TimeTravelController>();
        _timeTravelDoorSound  = GetComponent <AudioSource>();

        StartCoroutine(TimeTravelCycle());
    }
        void Start()
        {
            MoveAndotateScript = GetComponent<AutoMoveAndRotate> ();

            if (MoveAndotateScript == null)
            {
                Debug.LogWarning("Cannot find AutoMoveAndRotate script");
            }

            if (MoveAndotateScript != null)
            {
                MoveAndotateScript.rotateDegreesPerSecond.value
                    = new Vector3 (degreesPerSec.x, degreesPerSec.y, degreesPerSec.z);
            }
        }
Esempio n. 3
0
        void Start()
        {
            MoveAndotateScript = GetComponent <AutoMoveAndRotate> ();

            if (MoveAndotateScript == null)
            {
                Debug.LogWarning("Cannot find AutoMoveAndRotate script");
            }

            if (MoveAndotateScript != null)
            {
                MoveAndotateScript.rotateDegreesPerSecond.value
                    = new Vector3(degreesPerSec.x, degreesPerSec.y, degreesPerSec.z);
            }
        }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     renderSeta = GetComponent <SpriteRenderer>();
     barraforca = (BarraForca)bola.GetComponent(typeof(BarraForca));
     rotateSeta = (UnityStandardAssets.Utility.AutoMoveAndRotate)seta.GetComponent(typeof(UnityStandardAssets.Utility.AutoMoveAndRotate));
 }