void Awake() { if (instance == null) { instance = this; } }
void Start() { flagManager = this.GetComponent <FlagInstantiator>(); if (playerGameObject == null) { playerGameObject = GameObject.Find("Player"); } playerMoviment = playerGameObject.GetComponent <BasicMoviment>(); }