private void Awake() { mGhosts.Add(this); animator = GetComponent <Animator>(); environment = GameObject.FindObjectOfType <Environment>(); colliders = GetComponents <Collider2D>(); camera = GameObject.FindObjectOfType <EnvironmentCamera>(); }
private void Awake() { camera = GameObject.FindObjectOfType <EnvironmentCamera>(); }
void OnValidate() { env = this; CameraMatch(); }
void Start() { env = this; activeCam = GetActiveCam(); }