Beispiel #1
0
        float speedRatio;                        //player speed ratio
        #endregion

        void Awake()
        {
            parentName = parentTile.name;          //get the tile name
            parentNumber = int.Parse(parentName);  //convert it into number
            lerpColorObjectList = FindObjectsOfType<LerpColor>(); //get objects with lerpcolor script
            holder = FindObjectOfType<TileHolder>(); //get the tileHolder
        }
Beispiel #2
0
        GameObject shape; //ref to the player

        void Awake()
        {
            if (instance == null)
                instance = this;
        }