// Start is called before the first frame update void Start() { image = this.GetComponent <Image>(); scale = this.transform.localScale; contollerobject = GameObject.FindGameObjectWithTag("GameGontrolManager"); gamecontrolmanager = contollerobject.GetComponent <GameControlManager>(); original_color = image.color; }
// Start is called before the first frame update void Start() { image = GetComponent <Image>(); // contollerobject = GameObject.FindGameObjectWithTag("GameGontrolManager"); gamecontrolmanager = contollerobject.GetComponent <GameControlManager>(); }
// Start is called before the first frame update void Start() { contollerobject = GameObject.FindGameObjectWithTag("GameGontrolManager"); gamecontrolmanager = contollerobject.GetComponent <GameControlManager>(); criSource = this.GetComponent <CriAtomSource>(); //SoundPlay(); }
// Use this for initialization void Start () { GCM = GameObject.FindGameObjectWithTag("GameControlManager").GetComponent<GameControlManager>(); if (Player1) direction = 1; if (!Player1) direction = -1; }
// Use this for initialization void Start() { jumpOffset = transform.position.x + jumpDistance; slowingSpeed = underWaterSpeed; emergeLocation = transform.position.x; swimAnimations = gameObject.GetComponent <SwimAnimations>(); graphic = transform.GetChild(0).gameObject.GetComponent <SpriteRenderer>(); graphic2 = transform.GetChild(1).gameObject.GetComponent <SpriteRenderer>(); GCM = GameObject.Find("GameManager").GetComponent <GameControlManager>(); }
void Awake() { finished = false; if (instance != null && instance != this) { Destroy(this.gameObject); return; } else { instance = this; } DontDestroyOnLoad(this.gameObject); }
// Use this for initialization void Start() { GCM = GameObject.Find("GameManager").GetComponent <GameControlManager>(); }
public void SetManager(GameControlManager managerInstance) { gameControlManager = managerInstance; }
protected virtual void Awake() { instance = this; }