A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Hi all, I've been trying to rotate a flattened cube on its Z axis. Here's the code: private IEnumerator RotateCube() { float time = 0f;...
In my GameManager class, I have: private void ShootAtEnemy() { if (OnShoot != null) { OnShoot(); if...
The _isShot code looks like this: private bool _isShot; public bool IsShot { get; set; } The variable is private but my getter and setter are...
Hi, I have an EffectsManager script set on an empty object in my hierarchy. At runtime, I call... public void TerminateEnemy() {...
Ahhhh! Thanks, I see it now! I named the class AttackDrone because it handles all the actions that each individual drone does independently....
I was trying to keep my post generic and simple. I definitely failed there. Let me try again. I have a prefab object (ADrone) that holds a...
Yea, I try to follow that rule but here it got complicated in design and difficult to explain here. Hmm.
I want to create good OOP code by using inheritance but I am going around in circles on this issue. Method1(a Lerp method) is in a script placed...
Gah! It's always a simple thing! That was indeed the issue. I also moved _activeAttackDrone = _poolManager.GetObjectFromPool(_attackDrones);...
Hi all, I am refactoring a project where I used InvokeRepeating to spawn my enemy prefabs("spawn" refers to setting active to true as I am...
I figured out the issue. In Update() in another class, I was checking the navMesh agent speed as one requirement for returning the object to the...
This might help: https://docs.unity3d.com/ScriptReference/Transform.LookAt.html
The last console message is: Fading out drone to color: RGBA(0.000, 0.000, 0.000, 0.000) UnityEngine.Debug:Log(Object)...
Thanks for your reply! I made a flag as you suggested but the object still disapears before the color changes finish. Here's the updated code:...
Hello, I am taking an object (shotObject) and using a coroutine to loop through some colors/alphas to make it look like its disappearing. Once...
Hi, I am creating a game for mobile VR (1st person). It's pretty far along and I've tried to keep it loosely coupled but now I have an issue...
Wow, I would have never thought of that! Thanks! Learn something new everyday.
Thanks! I don't think ProjectileManager can have a reference to DroneActions, can it? DroneActions is the script that's on the prefab. There are...
Hi, To be honest, I'm not sure this is possible. I have a script (DroneActions) on a prefab (Drone) that needs to call an event so that the...
I'll read up on World vs Local (I have only a basic understanding of it). I did have a debug line going in earlier versions and it worked...