Exemple #1
0
    //[SerializeField]
    //private Transform       m_Hint;
    //private Vector3         m_RoundPoint;
    //private float           m_HintTriggerDistance = 5f;

    /* *
     * すべてのparamを宣言します
     * */

    #endregion



    #region Function

    /* *
     * 初期化に関するメソッド
     * */

    //クラスを初期化します
    void Start()
    {
        ParentJumpPad = transform.parent.GetComponent <M_JumpPadMain>();
        foreach (Transform child in transform)
        {
            if (child.gameObject.name == "Handler")
            {
                Handler = child.gameObject;
            }
            if (child.gameObject.name == "SwitchPanel")
            {
                SwitchVolume = child.GetComponent <BoxCollider>() as BoxCollider;
            }
        }
    }
Exemple #2
0
    //[SerializeField]
    //private Transform       m_Hint;
    //private Vector3         m_HintPoint;

    #endregion

    #region Function

    /* *
     * 初期化に関するメソッド
     * */

    //クラスを初期化します
    void Start()
    {
        ParentJumpPad = transform.parent.GetComponent <M_JumpPadMain>();
        foreach (Transform child in transform)
        {
            if (child.gameObject.name == "ElectricPlanes")
            {
                ElectricRenderers = child.gameObject;
            }
            if (child.gameObject.name == "JumpPad")
            {
                JumpPadVolume = child.GetComponent <BoxCollider>() as BoxCollider;
            }
        }
    }
Exemple #3
0
 /* *
  * 初期化に関するメソッド
  * */
 //クラスを初期化します
 void Start()
 {
     ParentJumpPad = transform.parent.GetComponent<M_JumpPadMain>();
     foreach (Transform child in transform)
     {
         if (child.gameObject.name == "Handler")
         {
             Handler = child.gameObject;
         }
         if (child.gameObject.name == "SwitchPanel")
         {
             SwitchVolume = child.GetComponent<BoxCollider>() as BoxCollider;
         }
     }
 }