protected override void Start() { base.Start(); controller = GetComponent <PlayerControll>(); gunControll = GetComponent <GunControll>(); viewCamera = Camera.main; }
// Start is called before the first frame update void Start() { if (player == null) { GameObject[] plist = GameObject.FindGameObjectsWithTag("Player"); player = plist[0]; } playerguncontroll = player.GetComponent <GunControll>(); }