Ejemplo n.º 1
0
 public void AddEquipment(GameObject newEq) {
     equipment = newEq.GetComponent<Equipment>();
     if (equipment == null) {
         Debug.LogError("!!! No equipment on equipped " + newEq.name);
         Debug.Break();
     }
     equipment.GetComponentInChildren<SpriteRenderer>().sortingOrder = 10;
     equipment.transform.parent = transform;
     equipment.transform.localPosition = new Vector3(0.29f, -.07f, 0);
     equipment.transform.localRotation = Quaternion.Euler(0, 0, 323);
 }
Ejemplo n.º 2
0
 public void RemoveEquipment() {
     equipment = null;
 }