示例#1
0
    // Use this for initialization
    void Start()
    {
        dropMarkPre = Resources.Load <DropMark>("Prefabs/DropMark");

        cameraControl = FindObjectOfType <CameraControl>();

        statusDuration = new float[Enum.GetNames(typeof(PlayerStatus)).Length];

        //ステータスの効果を持ってくる
        statusEffect    = new Status[Enum.GetNames(typeof(PlayerStatus)).Length];
        statusEffect[0] = null;
        statusEffect[1] = new StatusPoison();
        statusEffect[2] = new StatusFly();

        //サイズを整える
        HP = startHP;
        var size = Mathf.Lerp(minSize, maxSize, (float)HP / maxHP);

        transform.localScale = Vector3.one * size;

        //回転
        transform.rotation =
            Quaternion.AngleAxis(Mathf.Rad2Deg * Mathf.Atan2(-1, 0) - 90, Vector3.forward);

        dropMarkPosLast = transform.position;
    }
示例#2
0
 public Plane(int PlaneID, StatusFly StatusFly)
 {
     this.PlaneID   = PlaneID;
     this.StatusFly = StatusFly;
 }