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 }
GameObject shape; //ref to the player void Awake() { if (instance == null) instance = this; }