Exemplo n.º 1
0
 private DivingGameController getDivingController()
 {
     if (divingController == null)
     {
         divingController = getPlayerGO().GetComponent <DivingGameController>();
     }
     return(divingController);
 }
Exemplo n.º 2
0
    public void Update()
    {
        DivingGameController component = base.gameObject.GetComponent <DivingGameController>();

        if (component != null)
        {
            component.DegradeRate = 0f;
        }
    }
Exemplo n.º 3
0
 private void RemoveDivingGameController()
 {
     if (!IsUnderWater)
     {
         DivingGameController component = base.gameObject.GetComponent <DivingGameController>();
         component.RemoveLocalPlayerAirBubbleData();
         Object.Destroy(component);
         Object.Destroy(base.gameObject.GetComponent <DivingGameObserver>());
     }
 }
Exemplo n.º 4
0
 private void checkForDivingGameController(SwimControllerData data = null)
 {
     if (!(bool)base.gameObject.GetComponent <DivingGameController>())
     {
         DivingGameController divingGameController = base.gameObject.AddComponent <DivingGameController>();
         if (data != null)
         {
             divingGameController.SetData(data);
         }
     }
 }
Exemplo n.º 5
0
 private void Start()
 {
     divingController = getDivingController();
     trayInputButton  = GetComponentInParent <TrayInputButton>();
 }