public override void Start() { this.lRenderer = ((LineRenderer)this.gameObject.GetComponent(typeof(LineRenderer))) as LineRenderer; this.aniTime = 0; this.StartCoroutine_Auto(this.ChoseNewAnimationTargetCoroutine()); this.raycast = this.GetComponent <PerFrameRaycast>(); }
void Awake() { muzzleFlashFront.SetActive (false); raycast = GetComponent<PerFrameRaycast> (); if (spawnPoint == null) spawnPoint = transform; }
public override void Awake() { this.muzzleFlashFront.SetActive(false); this.raycast = this.GetComponent <PerFrameRaycast>(); if (this.spawnPoint == null) { this.spawnPoint = this.transform; } }
void Start() { lRenderer = gameObject.GetComponent <LineRenderer>() as LineRenderer; aniTime = 0.0f; // Change some animation values here and there ChoseNewAnimationTargetCoroutine(); raycast = GetComponent <PerFrameRaycast> (); }
void Start() { lRenderer = gameObject.GetComponent <LineRenderer>(); aniTime = 0.0f; // Change some animation values here and there ChoseNewAnimationTargetCoroutine(); raycast = GetComponent<PerFrameRaycast> (); }
void Awake() { muzzleFlashFront.SetActive(false); raycast = GetComponent <PerFrameRaycast>(); if (spawnPoint == null) { spawnPoint = transform; } }
void Awake() { StartCoroutine(CheckForController()); // asource = GetComponent<AudioSource>(); muzzleFlashFront.SetActive (false); raycast = GetComponent<PerFrameRaycast> (); if (spawnPoint == null) spawnPoint = transform; }
void Awake() { StartCoroutine(CheckForController()); // asource = GetComponent<AudioSource>(); muzzleFlashFront.SetActive(false); raycast = GetComponent <PerFrameRaycast> (); if (spawnPoint == null) { spawnPoint = transform; } }
void Awake() { asource = GetComponent("AudioSource") as AudioSource; muzzleFlashFront.SetActive(false); raycast = GetComponent <PerFrameRaycast> (); if (spawnPoint == null) { spawnPoint = transform; } }