public override void Initialize(GameObject obj) { rcShoot = obj.GetComponent <RaycastShootTriggerable>(); rcShoot.Initialize(); rcShoot.gunDamage = gunDamage; rcShoot.weaponRange = weaponRange; rcShoot.hitForce = hitForce; rcShoot.laserLine.material = new Material(Shader.Find("Unlit/Color")); rcShoot.laserLine.material.color = laserColor; }
public override void Initialize(GameObject obj) { rcShoot = obj.GetComponent <RaycastShootTriggerable>(); rcShoot.Initialize(); rcShoot.damage = damage; rcShoot.range = range; rcShoot.hitForce = hitForce; rcShoot.rayLine.material = new Material(Shader.Find("Unlit/Color")); rcShoot.rayLine.material.color = rayCastColor; }
public override void Initialize(GameObject gameObject) { rcShooter = gameObject.GetComponent <RaycastShootTriggerable>(); if (rcShooter == null) { return; } rcShooter.range = range; rcShooter.laserColor = laserColor; rcShooter.fireRate = fireRate; rcShooter.Initialize(); }
public override void Initialize(GameObject obj) { rcShoot = obj.GetComponent <RaycastShootTriggerable> (); rcShoot.Initialize(); }