void Awake() { overridePos = Vector3.zero; isObserver = false; bit = GameObject.Find("bit"); bitScript = bit.GetComponent <BitBehaviour>(); }
//Code gets executed at start of scene void OnSceneLoaded(Scene scene, LoadSceneMode mode) { crossfadeImage = GameObject.Find("CrossfadeImage"); bit = GameObject.FindGameObjectWithTag("Bit"); bitScript = bit.GetComponent <BitBehaviour>(); cam = Camera.main.gameObject; crawlers = GameObject.FindGameObjectsWithTag("Player"); boxes = GameObject.FindGameObjectsWithTag("Box"); GeneralManager.SetVolumes(); rTimer = 3.0f; }
public void Awake() { isPowered = false; bitScript = GameObject.Find("bit").GetComponent <BitBehaviour>(); }
// Start is called before the first frame update void Start() { bitScript = GetComponentInParent <BitBehaviour>(); circle = GetComponent <CircleCollider2D>(); }