protected override void Start() { base.Start(); Body = Dependancy.Get <ZombieBody>(gameObject); Agent = GetComponent <NavMeshAgent>(); Animator = Dependancy.Get <Animator>(gameObject); Animator.SetFloat("Cycle Offset", Random.value); TriggersRewind = Dependancy.Get <AnimationTriggersRewind>(gameObject); TriggersRewind.Add(AttackConnected, "Attack Connected"); Ragdoll = Dependancy.Get <RagdollController>(gameObject); Ragdoll.Disable(); StartCoroutine(Procedure()); }
protected virtual void Reset() { var sizeFitter = Dependancy.Get <ContentSizeFitter>(gameObject); if (sizeFitter != null) { panel = sizeFitter.transform as RectTransform; if (sizeFitter.verticalFit == ContentSizeFitter.FitMode.PreferredSize) { axis = AxisTarget.Y; } else if (sizeFitter.horizontalFit == ContentSizeFitter.FitMode.PreferredSize) { axis = AxisTarget.X; } MaxSize = PanelSize; } }
protected virtual void Reset() { audioSource = Dependancy.Get <AudioSource>(gameObject); }
protected virtual void Reset() { target = Dependancy.Get <UIElement>(gameObject, Dependancy.Scope.RecursiveToParents); }
public void Init(Entity reference) { Entity = reference; Animator = Dependancy.Get <Animator>(Entity.gameObject); }
public void Init(Player reference) { this.player = reference; Sprint = Dependancy.Get <PlayerSprint>(player.gameObject); }
protected virtual void Awake() { Health = GetComponent <EntityHealth>(); Burn = Dependancy.Get <EntityBurn>(gameObject); }
protected virtual void Awake() { toggle = Dependancy.Get <Toggle>(gameObject, Dependancy.Scope.RecursiveToParents); toggle.onValueChanged.AddListener(OnChange); }
public virtual void Configure() { Label = Dependancy.Get <Text>(gameObject); }
protected virtual void Reset() { audioSource = Dependancy.Get <AudioSource>(gameObject, Dependancy.Scope.RecursiveToParents); }
public virtual void Init() { ConstraintArea = Dependancy.Get <ConstraintArea>(gameObject); List = new List <Player>(); }
protected virtual void GetDependancies() { Bar = Dependancy.Get <ProgressBar>(gameObject, Dependancy.Scope.RecursiveToParents); }