Esempio n. 1
0
 void Start()
 {
     if (Miscellaneous.CheckNullAndLogError(_handMovementDefault) ||
         Miscellaneous.CheckNullAndLogError(_handMovementList))
     {
         return;
     }
 }
Esempio n. 2
0
 void Awake()
 {
     if (Miscellaneous.CheckNullAndLogError(_buttonMover) ||
         Miscellaneous.CheckNullAndLogError(_touchable))
     {
         return;
     }
     _buttonMover.ButtonPressed += OnButtonPressed;
 }
Esempio n. 3
0
 void Awake()
 {
     if (Miscellaneous.CheckNullAndLogError(_startPoint) ||
         Miscellaneous.CheckNullAndLogError(_endPoint) ||
         Miscellaneous.CheckNullAndLogError(_rotationReference))
     {
         return;
     }
 }
 void Awake()
 {
     if (Miscellaneous.CheckNullAndLogError(_reference))
     {
         return;
     }
     _rotationRelativeToReference = Quaternion.Inverse(_reference.rotation) * transform.rotation;
     _positionRelativeToReference = _reference.InverseTransformPoint(transform.position);
 }
Esempio n. 5
0
 void Awake()
 {
     if (Miscellaneous.CheckNullAndLogError(_button1) ||
         Miscellaneous.CheckNullAndLogError(_button2))
     {
         return;
     }
     _button1.ButtonPressed += OnButtonPressed;
     _button2.ButtonPressed += OnButtonPressed;
 }
 void Awake()
 {
     Miscellaneous.CheckNullAndLogError(_rb);
     Miscellaneous.CheckNullAndLogError(_rightDirectionReference);
     Miscellaneous.CheckNullAndLogError(_upwardDirectionReference);
     Miscellaneous.CheckNullAndLogError(_forwardDirectionReference);
     Miscellaneous.CheckNullAndLogError(_centerReference);
     Miscellaneous.CheckNullAndLogError(_unityChanController);
     _avatarPositionState = AvatarPositionState.Center;
     _coolDownStart       = -_coolDownTime;
 }
Esempio n. 7
0
 void Awake()
 {
     _status             = ButtonStatus.Idle;
     _buttonMoverTrigger =
         _buttonMoverTriggerTransform.GetComponent <ICollisionTriggeredBody>();
     if (Miscellaneous.CheckNullAndLogError(_buttonMoverTrigger))
     {
         return;
     }
     _buttonMoverTrigger.TriggerStart += OnButtonMoveStart;
     _buttonMoverTrigger.TriggerEnd   += OnButtonMoveStop;
     _childCollidersToTypeDict         = ColliderUtility.GenerateChildCollidersToTypeDict(transform);
     _overlappedColliders              = new HashSet <Collider>();
     _curPositionNormalized            = 0f;
 }
    void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else if (Instance != this)
        {
            DestroyImmediate(gameObject);
        }


        Miscellaneous.CheckNullAndLogError(_avatarController);
        Miscellaneous.CheckNullAndLogError(_scoreText);
        Miscellaneous.CheckNullAndLogError(_gameOverTexts);

        _receiver        = new MicrobitReceiverClient(_port);
        _highScoreClient = GetComponent <HighScoreClient>();
        Miscellaneous.CheckNullAndLogError(_highScoreClient);
    }
 void Awake()
 {
     Miscellaneous.CheckNullAndLogError(_target);
 }