void Awake() { PV = GetComponent <PhotonView>(); proxy = GetComponent <CharacterProxy>(); movement = GetComponent <CharacterMovement>(); fire = GetComponent <CharacterFire>(); damage = GetComponent <CharacterDamage>(); boosterController = GetComponent <BoosterController>(); weaponController = GetComponent <WeaponController>(); rigidBody = GetComponent <Rigidbody2D>(); collider2d = GetComponent <Collider2D>(); if (PV.IsMine) { InitLocal(); } else { InitProxy(); } PlayerName.Value = PV.Owner.NickName; NameChangeEvent.Raise(); isAlreadyDead = false; }
void Start() { CustomTypesSerialization.Register(); currentBoosters = new List <Booster>(); proxy = GetComponent <CharacterProxy>(); spriteRenderer = GetComponentInChildren <SpriteRenderer>(); }
void Start() { FireAllowed.SetValue(false); proxy = GetComponent <CharacterProxy>(); foreach (Animator anim in GetComponentsInChildren <Animator>()) { if (anim.name == "Weapon") { weaponAnimator = anim; break; } } }
void Start() { proxy = GetComponent <CharacterProxy>(); boosterController = GetComponent <BoosterController>(); }