コード例 #1
0
 protected override void Start()
 {
     _cameraPlayer      = this.GetComponentInChildren <Camera>();
     _launcherTransform = PosHelper.GetRightHandTransformOfPlayer(transform);
     _throwable         = LoadResource("Trident");
     base.Start();
 }
コード例 #2
0
    /** 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();
    }