コード例 #1
0
 // Use this for initialization
 void Start()
 {
     //swordCollider = GetComponent<Collider2D> ();
     attachedCollider = GetComponent <PolygonCollider2D> ();
     if (attachedCollider == null)
     {
         Debug.Log("MISSING COLLIDER REF");
     }
     Debug.Log("GOT COLLIDER REF");
     targetsHit       = new List <int> ();
     moveInfo         = GetComponentInParent <AbilityBasicMovement> ();
     playerAttackInfo = GetComponentInParent <AttackInfoContainer> ();
     SPManager        = GetComponentInParent <PlayerSPComponent>();
     SPValues         = new PlayerSPValues();
     timeManager      = GameObject.Find("Time Manager").GetComponent <TimeFunctions> ();
     hitParticles     = GameObject.Find("HitParticles");
     DisableCollider();
 }