private void Start() { MV = GetComponent <General.MoveAnimation>(); LS = GetComponent <General.ListAnimation>(); if (Bullet == null) { Debug.Log("Shooting nothing!"); } //if (ammo > 0) { Reload(); } }
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(); }
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); } }