Esempio n. 1
0
 public void handleBoxColliderSimilarities(CollisionController colController)
 {
     colController.initBoxCollider();
     colController.ColliderScale     = boxScale;
     colController.ColliderIsTrigger = true;
     colController.setupInterfaces(this, this);
 }
 // Since there are overlaps for the Press and Hover inits (below), we take those duplicate lines out and put them in here
 public void handleCircleColliderSimilarities(CollisionController colController)
 {
     colController.initCapsuleCollider();
     colController.ColliderDirection = direction;
     colController.ColliderIsTrigger = true;
     colController.ColliderScale     = colScale;
     colController.setupInterfaces(this, this);
 }
    // Use this for initialization
    void Start()
    {
        if (name.Equals("LockItem"))
        {
            mName += "lock";
        }
        else
        {
            mName += "pin";
        }

        hoverCollisionController.setupInterfaces(this, this);
        hoverCollisionController.IsHover = true;
        pressCollisionControler.setupInterfaces(this, this);
        pressCollisionControler.IsHover = false;
    }