void Start() { startPosition = transform.position; flippedRotation = new Vector3(180f, 0f, 0f); sideRotation = new Vector3(0f, 90f, 0f); tileControler = FindObjectOfType <TileControler>(); }
// Use this for initialization void Start() { tileControler = FindObjectOfType <TileControler>(); }