Exemple #1
0
        private void Start()
        {
            floatConditionTriggers = floatConditionTriggers != null ? floatConditionTriggers : new List <FloatPair>();
            boolConditionTriggers  = boolConditionTriggers != null ? boolConditionTriggers : new List <BoolPair>();

            animLogic = GetComponent <AnimatorLogicManager>();
            animLogic.Init(MockAnimationService.GateData
                           .FirstOrDefault(x => x.targetId == entityId)
                           .gates);
        }
Exemple #2
0
        private void Start()
        {
            rbody = GetComponent <Rigidbody2D>();
            interactionTrigger = GetComponentInChildren <InteractionTrigger>();
            Facing             = Vector2.right;
            animLogic          = transform.GetComponentInChildren <AnimatorLogicManager>();

            InteractionsEnabled = true;
            MovementEnabled     = true;
        }