public void Awake() { canDrop = false; avatarController = GetComponent<AvatarController>(); avatarNetwork = GetComponent<AvatarNetworkBehavior>(); animator = GetComponent<RpcNetworkAnimator>(); key = KeyCode.M; }
public void SetMinionToControl(GameObject minion, bool hauntMinionActive) { hauntEtoM = hauntMinionActive; animator.Broadcast = hauntMinionActive; hauntMinionToControl = minion; if(hauntMinionToControl != null) { hauntedMinionAnimator = hauntMinionToControl.GetComponentInChildren<RpcNetworkAnimator>(); } }
public void Awake() { canDrop = false; animator = GetComponentInParent<RpcNetworkAnimator>(); avatarNetwork = GetComponent<AvatarNetworkBehavior>(); avatarController = GetComponent<AvatarController>(); if (FX) { Transform oldParent = FX.parent; FX.parent = null; FX.localScale = new Vector3(AreaRadius, AreaRadius, 1); ; FX.parent = oldParent; } // Set key code: key = KeyCode.Mouse0; }
public void Awake() { canDrop = false; animator = GetComponentInParent<RpcNetworkAnimator>(); avatarNetwork = GetComponent<AvatarNetworkBehavior>(); avatarController = GetComponent<AvatarController>(); // Set key code: key = KeyCode.Mouse0; // ToolTip text ToolTip.Description = "Throws light greanade. Deal damage on impact."; ToolTip.FirstAttribute = "Regular"; ToolTip.SecondLabel = "Knockback:"; ToolTip.SecondAttribute = "Low"; ToolTip.ThirdLabel = "Radius:"; ToolTip.ThirdAttribute = ExploRadius.ToString() + "m"; }
public void Awake() { canDrop = false; animator = GetComponentInParent<RpcNetworkAnimator>(); avatarNetwork = GetComponent<AvatarNetworkBehavior>(); avatarController = GetComponent<AvatarController>(); if (FX == null) { FX = transform.FindChild("AvatarRotation").FindChild("AllAnimsInOne").FindChild("HealFX"); } if (FX) { Transform oldParent = FX.parent; FX.parent = null; FX.localScale = new Vector3(AreaRadius, AreaRadius, 1); FX.parent = oldParent; } // Set key code: key = KeyCode.LeftShift; // ToolTip text ToolTip.Description = "Recovers allies health around Explorer."; ToolTip.FirstLabel = "Amount:"; ToolTip.FirstAttribute = HealAmount.ToString() + " HP"; ToolTip.SecondLabel = "Radius:"; ToolTip.SecondAttribute = AreaRadius.ToString() + "m"; ToolTip.ThirdLabel = ""; ToolTip.ThirdAttribute = ""; }
public void Awake() { canDrop = false; animator = GetComponentInParent<RpcNetworkAnimator>(); avatarNetwork = GetComponent<AvatarNetworkBehavior>(); avatarController = GetComponent<AvatarController>(); DisplayBox = transform.FindChild("AvatarRotation/SpriteBox").gameObject; DisplayBox.SetActive(false); // Set key code: key = KeyCode.Mouse0; // ToolTip text ToolTip.Description = "Swings heavy staff and deals damage."; ToolTip.FirstAttribute = "High"; ToolTip.SecondLabel = "Knockback:"; ToolTip.SecondAttribute = "High"; ToolTip.ThirdAttribute = "Low"; }
void Awake() { minCtrlScrpt = GetComponent<MinionController>(); animator = GetComponent<RpcNetworkAnimator>(); container = transform.Find("Rotation"); path = new List<Vector2>(); isStunned = false; slowDownMod = 1.0f; // Gets slowed UI and disables it. if (SlowedUI == null) { SlowedUI = transform.GetChild(1).gameObject; if (SlowedUI == null) { Debug.Log(this.gameObject + " did not find its SLOWED UI"); } // Deactivate Slowed UI minCtrlScrpt.RpcSetSlowedUiActive(false); } }
// Use this for initialization void Start() { netAnim = GetComponent<RpcNetworkAnimator>(); collisions = new Collider2D[4]; }
void Awake() { hauntEtoM = false; _rb = GetComponent<Rigidbody2D>(); _health = GetComponent<Health>(); _avatarSkillBar = GetComponentInChildren<SkillBar>(); animator = GetComponent<RpcNetworkAnimator>(); avatarNB = GetComponent<AvatarNetworkBehavior>(); contanier = transform.Find("AvatarRotation"); // Game Balance Adjust => Makes Speed number comparable to Minion Speed number. CalcMoveSpeed = MoveSpeed / SpeedAdjust; slowDownMod = 1.0f; isHidden = false; }
void Start() { Transform healthPanel = GameObject.Find("MainCanvas").transform.FindChild("HealthPanel").transform.FindChild("HealthBar"); canvas = GameObject.Instantiate(HealthCanvas); canvas.name = gameObject.name + "Health"; CurrentHealth = BaseHealth; //if (GetComponent<AvatarController>() != null) //{ // canvas.transform.SetParent(healthPanel, false); // slider = canvas.GetComponentInChildren<Slider>(); // slider.gameObject.transform.FindChild("UISprite").GetComponent<Image>().sprite = UISprite; // if(gameObject.name == "Me") // { // canvas.transform.SetAsFirstSibling(); // } //} //else //{ //} canvas.transform.SetParent(transform, false); slider = GetComponentInChildren<Slider>(); animator = GetComponent<RpcNetworkAnimator>(); }