コード例 #1
0
    public override void Fire()
    {
        base.Fire();
        if (microMissilePod == null)
        {
            microMissilePod = (MicroMissilePod)Instantiate(microMissilePodPrefab, bulletTransform.transform.position, bulletTransform.transform.rotation);

            microMissilePod.player = owner.player;
            microMissilePod.microMissilePodController = this;

            this.GetComponent <AudioSource>().Play();

            cameraFollower.ChangeCameraMode(true);
        }
    }
コード例 #2
0
 public void Reload()
 {
     microMissilePod = null;
     cameraFollower.ChangeCameraMode(false);
 }