Exemplo n.º 1
0
 public void DestroyObject(Collider key, ThrowableObjectClass obj)
 {
     foreach (Collider col in obj.GetAllCollider())
         this.CurrentObjectInstantiate.Remove(col);
     this.freeObject.Add(obj);
     if (obj.PlayerWhoThrow != null)
         obj.PlayerWhoThrow.DropObject(obj);
     obj.Destroy();
 }
Exemplo n.º 2
0
 public void DropObject(ThrowableObjectClass obj)
 {
     this.CurrentObject = obj;
 }
Exemplo n.º 3
0
 public void ThrowObject(ThrowableObjectClass obj)
 {
     obj.myObject.transform.parent = handEmpty.transform;
     obj.myObject.transform.localPosition = Vector3.zero;
     obj.myObject.transform.localRotation = Quaternion.Euler(340, 180, 180);
     obj.Initialize(this);
     if (this.CurrentObject != null)
         this.CurrentObject.Drop();
     this.CurrentObject = obj;
 }