Ejemplo n.º 1
0
    void Start()
    {
        pathGO   = GameObject.Find("Path");
        maxScale = Constants.MAX_SCALE;
        minScale = Constants.MIN_SCALE;
        minLocalScaleMagnitude = minScale.magnitude;
        maxLocalScaleMagnitude = maxScale.magnitude;


        if (transform.childCount > 0)
        {
            Crocoscript = GetComponentInChildren <CrocodileScript>();
            foreach (GameObject obj in CrocodilesList)
            {
                obj.gameObject.transform.localScale = Constants.CROCODILE_STARTING_SCALE;
            }
        }

        else
        {
            gameObject.transform.localScale = Constants.RIPPLE_STARTING_SCALE;
        }
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     marineBehaviourScript    = marine.GetComponent <marineScript>();
     crocodileBehaviourScript = crocodile.GetComponent <CrocodileScript>();
     buggyBehaviourScript     = buggy.GetComponent <BuggyScript>();
 }