コード例 #1
0
ファイル: PVPcheckPoint.cs プロジェクト: xRainCloud/guardian
    private void NewTitan()
    {
        int        rate       = normalTitanRate;
        Vector3    position   = base.transform.position;
        Vector3    up         = Vector3.up;
        Vector3    position2  = base.transform.position;
        GameObject gameObject = fengGame.SpawnTitan(rate, position - up * (position2.y - GetHeight(base.transform.position)), base.transform.rotation);

        if (FengGameManagerMKII.Level.Map == "The City I")
        {
            gameObject.GetComponent <TITAN>().chaseDistance = 120f;
        }
        else
        {
            gameObject.GetComponent <TITAN>().chaseDistance = 200f;
        }
        gameObject.GetComponent <TITAN>().PVPfromCheckPt = this;
    }