// Use this for initialization void Start() { angle = transform.parent.GetComponent <camScript>(); if (shootpoint == null) { shootpoint = transform; } }
// Use this for initialization void Start() { if (screen == null) { screen = this; } else { Destroy(gameObject); } //myCam = GetComponent<Camera> (); if (managerScript.man.playerChar != null) { Vector3 playerPos = managerScript.man.playerChar.transform.position; transform.position = playerPos; currentPos = transform.position; } }
void Start() { Cam_script = gameObject.GetComponent <camScript>(); }