// Start is called before the first frame update void Start() { base.Start(); player = FindObjectOfType <GiuseppeBattleScript>().transform; cameraController = FindObjectOfType <BattleCameraController>(); facingRight = false; }
// Use this for initialization void Start() { ctrl = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <BattleCameraController>(); cs = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <CameraShake>(); }
void Awake() { if (singleton == null) { singleton = this; } cam = GetComponent<Camera>(); //AssignCameraAngle(); }
public virtual void Start() { cameraController = FindObjectOfType <BattleCameraController>(); }
void OnEnable() { controller = (BattleCameraController)target; }