protected override void Start() { _cameraPlayer = this.GetComponentInChildren <Camera>(); _launcherTransform = PosHelper.GetRightHandTransformOfPlayer(transform); _throwable = LoadResource("Trident"); base.Start(); }
/** Start : protected override void Method * First at all, we override the GCD of the mother class. * Then we get the prefab of the AutoAttackFireMage. * Then, the scripts is looking for the origin point of the instantiation (i.e. the hand of our character). **/ protected override void Start() { _cameraPlayer = this.GetComponentInChildren <Camera>(); _throwable = LoadResource("AutoAttackFireMage"); _shieldObject = LoadResource("FireMageShield"); _launcherTransform = PosHelper.GetRightHandTransformOfPlayer(transform); base.Start(); }