예제 #1
0
 public void SetTrapOver()
 {
     trapSystem.AddUsed(transform.position);
     trapSystem.GetNewestChild().SetOn(false, RecycleTrape);
     tool.enabled = false;
     craftFunc    = true;
 }
예제 #2
0
    public void OnBuildingTrape()
    {
        if (childProjectSystem.GetFreeNum() <= 0)
        {
            return;
        }
        Vector3 pos = new Vector3(transform.position.x, transform.position.y - 0.6f, transform.position.z);

        childProjectSystem.AddUsed(pos);
        childProjectSystem.GetNewestChild().SetOn(false, fakeCallBack);
    }
예제 #3
0
    public void SetTrapOver()
    {
        Vector3 pos = new Vector3(transform.position.x, transform.position.y - 0.6f, transform.position.z);

        childProjectSystem.AddUsed(pos);
        childProjectSystem.GetNewestChild().SetOn(true, RecycleTrape);
        Tool.enabled    = false;
        OnBuildTrapping = false;
        switchMove(true);
        craftSystem.SetFuncBusy(false);
    }
예제 #4
0
 public void SetEffect(Vector3 pos, float _size)
 {
     hitEffects.AddUsed(pos);
     hitEffects.GetNewestChild().SetOn(_size);
 }