コード例 #1
0
    private void OnMissileDestGround()
    {
        CreateExplosion();
        CreateCrater();
        CreateCraterTexture();

        if (playerControl != null)
        {
            playerControl.CallTargetChangedEvent();
        }
    }
コード例 #2
0
    public void CmdAimAtTarget(ParabolaData data)
    {
        if (!playerControl.enabled)
        {
            Debug.Log("Command TargetChanged FAILED: PlayerControl is disabled now");
            return;
        }

        playerControl.FireTarget = data.targetPos;
        playerControl.CallTargetChangedEvent();
    }