Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        base.Start();

        player = FindObjectOfType <GiuseppeBattleScript>().transform;

        cameraController = FindObjectOfType <BattleCameraController>();

        facingRight = false;
    }
Esempio n. 2
0
 // 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();
    }
Esempio n. 4
0
 public virtual void Start()
 {
     cameraController = FindObjectOfType <BattleCameraController>();
 }
 void OnEnable()
 {
     controller = (BattleCameraController)target;
 }