コード例 #1
0
 public void endLock()
 {
     isLocking = false;
     makeColor(defaultColor);
     if (warningComputer == null)
     {
         warningComputer = hudControl.mainHud.GetComponent <hudControl>().warningComputer;
     }
     warningComputer.endLock(this);
 }
コード例 #2
0
    public void beginLock()
    {
        isLocking = true;
        makeColor(lockColor);
        if (warningComputer == null)
        {
            warningComputer = hudControl.mainHud.GetComponent <hudControl>().warningComputer;
        }

        //Debug.Log("Beginning lock");
        warningComputer.beginLock(this);
    }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     showPingResult(false, 0, 0);
     warningComputer = hudControl.mainHud.GetComponent <hudControl>().warningComputer;
 }