// Start is called before the first frame update void Start() { player = Script_Game.Game.GetPlayer(); UpdateFollowTarget(); transform.position = endPosition; if (CheckBounds()) { spriteFader.SetVisibility(true); } else { spriteFader.SetVisibility(false); } }
public void Setup(Seasons season) { if (mySeason != season) { spriteFader.SetVisibility(false); } }
void Start() { g = Script_Game.Game; if (targetLoc == Vector3.zero) { targetLoc = GetComponent <Transform>().position; } if (CheckShouldFadeIn()) { spriteFader.SetVisibility(true); } else { spriteFader.SetVisibility(false); } }