//[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; } } }
//[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; } } }
/* * * 初期化に関するメソッド * */ //クラスを初期化します 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; } } }