Exemple #1
0
 // Use this for initialization
 void Start()
 {
     this.DirectionSystem = new FourDirectionSystem();
     playerBody           = GetComponent <Rigidbody2D> ();
     orientationSystem    = GetComponent <OrientationSystem> ();
     SPHandler            = GetComponent <PlayerSPComponent> ();
     SPValues             = new PlayerSPValues();
 }
Exemple #2
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();
 }