コード例 #1
0
 void Start()
 {
     dash  = GetComponent <DashController>();
     move  = GetComponent <GhostMovement>();
     combo = GetComponent <GhostCombo>();
     fx    = GetComponent <FX>();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     dashMultiplier = 1f;
     cool           = 0f;
     doDash         = false;
     dashTmr        = 0f;
     doCool         = false;
     afterDash      = false;
     ghost          = GetComponent <GhostController>();
     rb             = GetComponent <Rigidbody>();
     combo          = GetComponent <GhostCombo>();
     fxHolder       = transform.Find("Dash").gameObject;
     fx             = fxHolder.GetComponent <FX>();
     coll           = transform.GetChild(0).gameObject.GetComponent <BoxCollider>();
 }