Exemple #1
0
 private void Start()
 {
     MV = GetComponent <General.MoveAnimation>();
     LS = GetComponent <General.ListAnimation>();
     if (Bullet == null)
     {
         Debug.Log("Shooting nothing!");
     }
     //if (ammo > 0) { Reload(); }
 }
Exemple #2
0
 private void Awake()
 {
     //bodyparts = new List<Transform>();
     //inventory = new List<Transform>();
     RB = GetComponent <Rigidbody2D>();
     //normalmass = RB.mass;
     //SR = GetComponent<SpriteRenderer>();
     LS  = GetComponent <General.ListAnimation>();
     Inv = GetComponentInChildren <Inventory>();
     //HIJoint = new FixedJoint2D();
     //UpdateParts();
 }
Exemple #3
0
        private void Start()
        {
            Interactible I = GetComponent <Interactible>();

            if (I != null)
            {
                I.OnInteract += I_OnInteract;
            }
            else
            {
                Debug.Log("Cant find Interactible!");
            }
            LS = GetComponent <General.ListAnimation>();
            if (LS == null)
            {
                Debug.Log("Dont forget ListAnimation"); Destroy(this);
            }
        }